package com.gae.onlinestore.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;
@Entity
public class ProductInBusket implements Serializable {
	public ProductInBusket(){
		
	}
	public ProductInBusket(String owner, String name, double price, String imagePath,
			int numInStock, int productId) {
		this.name = name;
		this.price = price;
		this.imagePath = imagePath;
		this.numInStock = numInStock;
		this.owner = owner;
		this.productId = productId;
	}
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Key id;	
	@Basic
	private String name;
	private double price;
	private String imagePath;
	private int numInStock;
	
	public int getNumInStock() {
		return numInStock;
	}
	public void setNumInStock(int numInStock) {
		this.numInStock = numInStock;
	}
	public Key getId() {
		return id;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getImagePath() {
		return imagePath;
	}
	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	private static final long serialVersionUID = 1L;
	private int productId;
	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	private String owner;
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}

}

